#!/bin/bash
#
#
sudo chmod -R 777 ./;
#
#
sleep 1;
echo '';
echo 'init /opt/openresty......';
sudo mkdir -p /opt/openresty/conf/;
sudo mkdir -p /opt/openresty/lua;
sudo chmod -R 777 /opt/openresty;
#
#
sleep 1;
echo '';
echo 'init /data/openresty......';
sudo mkdir -p /data/openresty/logs/prm.bao5.com.cn;
sudo chmod -R 777 /data/openresty;
#
#
sleep 1;
echo '';
echo 'init custom conf......';
sudo cp -rfv nginx.conf /usr/local/nginx/conf/;
sudo cp -rfv prm.bao5.com.cn.conf /opt/openresty/conf/;
#
#
sleep 1;
echo '';
echo '==========>> success <<==========';
echo '';
#